<layout name="layout" />
<div class="uk-margin uk-margin-large uk-block">
    <present name="message">
        <div class="uk-alert uk-alert-success" style="margin:0 auto;">
            <b>√</b>&nbsp;&nbsp;
            <?php echo($message); ?>
        </div>
        <else/>
        <div class="uk-alert uk-alert-danger" style="margin:0 auto;">
            <b>×</b>&nbsp;&nbsp;
            <?php echo($error); ?>
        </div>
    </present>
    <p class="jump">
        Page will be back <a id="href" href="<?php echo($jumpUrl); ?>">Here</a> in <span id="wait"><?php echo($waitSecond); ?></span> seconds.
    </p>
    <script type="text/javascript">
    (function() {
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function() {
            var time = --wait.innerHTML;
            if (time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
    </script>
</div>
